package components

import (
	"net"
)

// GetLocalIp 获取本地IP
func GetLocalIp() string {
	ip, err := net.LookupIP("localhost")
	if err != nil {
		return ""
	}
	return ip[0].String()
}
